import sys
from PyQt5.QtWidgets import QApplication
from datetime import datetime
from ui.reminder_dialog import ReminderDialog

if __name__ == "__main__":
    app = QApplication(sys.argv)

    # 构造一个模拟的 schedule 字典
    test_schedule = {
        "title": "项目提交截止",
        "start_time": datetime.now(),
        "end_time": datetime.now().replace(hour=23, minute=59),
        "notes": "记得在晚上前提交项目文件。\n需要包括：源代码、说明文档、截图。"
    }

    # 显示弹窗
    dialog = ReminderDialog(test_schedule)
    dialog.show()

    sys.exit(app.exec_())
